﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
using System.Reflection;

namespace 草稿
{
    class Example
    {

        class Program
        {
            static void Main(string[] args)
            {

                char[] a = new char[] { 'g', 'o', 'a', 'd','o' };
                string s = new string(a);
                
                Console.WriteLine(s.LastIndexOf("o"));
            }
        }
    }
}
